package ru.fsd.sokoban;

import java.awt.image.BufferedImage;


/**
 * Общий интерфейс для всех объектов игры.
 */
public class GameObject {
	
	public static final int GROUND = 0;
	public static final int WALL = 1;
	public static final int BOX = 2;
	public static final int PLACE = 3;
	public static final int BOX_ON_PLACE = 4;
	public static final int PLAYER = 5;
	
	private int role;
	
	private BufferedImage bufImg = null;
	
	public GameObject(int role, BufferedImage dufImg) {
		this.role = role;
		this.bufImg = dufImg;
	}
	
	public int getRole() {
		return role;
	}
	
	public BufferedImage getImage() {
		return bufImg;
	}
	
	public void setImage(BufferedImage bufImg) {
		this.bufImg = bufImg;
	}
}
